package com.tsingteng.cosfun.ui.cosfun.imodel;

import com.tsingteng.cosfun.bean.AttentFansbean;
import com.tsingteng.cosfun.bean.BaseDataBean;
import com.tsingteng.cosfun.bean.FollowBean;
import com.tsingteng.cosfun.bean.RecommenResp;
import com.tsingteng.cosfun.callback.RxObserver;
import com.tsingteng.cosfun.common.Config;
import com.tsingteng.cosfun.common.Constant;
import com.tsingteng.cosfun.http.RxSchedulers;
import com.tsingteng.cosfun.mvp.module.BaseModel;

import retrofit2.Call;
import retrofit2.Callback;

public class AttentModel extends BaseModel implements IAttentModel {

    //@列表
    @Override
    public void getAttentList(String userId, String pageNo, Callback<BaseDataBean<AttentFansbean>> callback) {
        doRxRequest().getAttentList(pageNo + "", Config.PAGE_SIZE + "", userId).enqueue(callback);
    }
    @Override
    public void getFocusListInfo(Callback<BaseDataBean<RecommenResp>> callback) {
        doRxRequest().getAtFocusList(Constant.FRIEND_PAGE_RECOMMENDATION,Config.PAGE_NO,Config.PAGE_FIFTY).enqueue(callback);
    }

    @Override
    public void getFollowNotification(String profileId, Callback<BaseDataBean<FollowBean>> callback) {
        doRxRequest().followPerson(profileId).enqueue(callback);
    }

    @Override
    public void getNoFollowNotification(String follow_id, Callback<BaseDataBean<FollowBean>> callback) {
        doRxRequest().noFollow(follow_id).enqueue(callback);
    }
}
